window.onscroll = function(){
//	console.log(document.documentElement.scrollTop > 1000 || document.body.scrollTop > 1000);
	var t = document.querySelector("#toTop");
	if(document.documentElement.scrollTop > 1 || document.body.scrollTop > 1){
		t.style.display = "block";
//		t.onclick = function(){
//			document.documentElement.scrollTop = 0;
//			window.scrollTo(10000,0);
//		}
//		
	}else{
		t.style.display = "none";
	}
	t.addEventListener('click',function(){
		window.scrollTo({
			top:0,
			behavior:'smooth'
		})
	})
}




var dt_nav_btn = document.querySelector("#dt-nav-btn");
var dt_nav_content = document.querySelector("#dt_nav_content");

dt_nav_btn.addEventListener("mouseover",function(){
	console.log("谁在上面？");
	dt_nav_content.style.display= "block";
})
dt_nav_content.addEventListener("mouseleave",function(){
	console.log("拜拜");
	dt_nav_content.style.display= "none";
})